import React, { Component } from 'react'
import Login from "./pages/Login"
import Layout from "./pages/Layout"
import {HashRouter as Router,Route,Switch,Redirect} from "react-router-dom"
export default class App extends Component {
  render() {
    return (
      <Router>
        <Switch>
          <Route path="/login" component={Login}/>
          <Route path="/index" component={Layout}/>
          <Redirect to="/index"/>
        </Switch>
      </Router>
    )
  }
}
